package design.principles.ocp.after;

import java.util.ArrayList;
import java.util.List;

public class Client {
    public static void main(String[] args) {
        List<Shape> shapes = new ArrayList<Shape>();
        shapes.add(new Square(5));
        shapes.add(new Circle(3));
        shapes.add(new Triangle(3, 4));
        ShapeUtil.printArea(shapes);
    }
}
